import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ScriptsService } from './scripts.service';
import { ScriptsController } from './scripts.controller';
import { ScriptsGateway } from './scripts.gateway';
import { Script } from '../database/entities/script.entity';
import { ScriptExecution } from '../database/entities/script-execution.entity';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [
    TypeOrmModule.forFeature([Script, ScriptExecution]),
    AuthModule,
  ],
  controllers: [ScriptsController],
  providers: [ScriptsService, ScriptsGateway],
  exports: [ScriptsService],
})
export class ScriptsModule {}